/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package baiwa.rta.model;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author jirapatjantsakool
 */
public class RMwnltModel extends BaseModel implements Serializable {

    private static final long serialVersionUID = 1L;
    private Integer wnltid;
    private String wnltdocno;
    private String wnltstat;
    private String wnltattn;
    private Date wnltdat;
    private String wnltsbj;
    private String wnltdtl;
    private String wnltfilepath;
    private String wnltcreby;
    private Date wnltcredat;
    private String wnltupdby;
    private Date wnltupddat;
    private int rlrmid;

    private TowerModel tower;

    public RMwnltModel() {
    }

    public RMwnltModel(Integer wnltid) {
        this.wnltid = wnltid;
    }

    public Integer getWnltid() {
        return wnltid;
    }

    public void setWnltid(Integer wnltid) {
        this.wnltid = wnltid;
    }

    public String getWnltdocno() {
        return wnltdocno;
    }

    public void setWnltdocno(String wnltdocno) {
        this.wnltdocno = wnltdocno;
    }

    public String getWnltstat() {
        return wnltstat;
    }

    public void setWnltstat(String wnltstat) {
        this.wnltstat = wnltstat;
    }

    public String getWnltattn() {
        return wnltattn;
    }

    public void setWnltattn(String wnltattn) {
        this.wnltattn = wnltattn;
    }

    public Date getWnltdat() {
        return wnltdat;
    }

    public void setWnltdat(Date wnltdat) {
        this.wnltdat = wnltdat;
    }

    public String getWnltsbj() {
        return wnltsbj;
    }

    public void setWnltsbj(String wnltsbj) {
        this.wnltsbj = wnltsbj;
    }

    public String getWnltdtl() {
        return wnltdtl;
    }

    public void setWnltdtl(String wnltdtl) {
        this.wnltdtl = wnltdtl;
    }

    public String getWnltfilepath() {
        return wnltfilepath;
    }

    public void setWnltfilepath(String wnltfilepath) {
        this.wnltfilepath = wnltfilepath;
    }

    public Date getWnltcredat() {
        return wnltcredat;
    }

    public void setWnltcredat(Date wnltcredat) {
        this.wnltcredat = wnltcredat;
    }

    public String getWnltupdby() {
        return wnltupdby;
    }

    public void setWnltupdby(String wnltupdby) {
        this.wnltupdby = wnltupdby;
    }

    public Date getWnltupddat() {
        return wnltupddat;
    }

    public void setWnltupddat(Date wnltupddat) {
        this.wnltupddat = wnltupddat;
    }

    public String getWnltcreby() {
        return wnltcreby;
    }

    public void setWnltcreby(String wnltcreby) {
        this.wnltcreby = wnltcreby;
    }

    public int getRlrmid() {
        return rlrmid;
    }

    public void setRlrmid(int rlrmid) {
        this.rlrmid = rlrmid;
    }

    public TowerModel getTower() {
        return tower;
    }

    public void setTower(TowerModel tower) {
        this.tower = tower;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (wnltid != null ? wnltid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof RMwnltModel)) {
            return false;
        }
        RMwnltModel other = (RMwnltModel) object;
        if ((this.wnltid == null && other.wnltid != null) || (this.wnltid != null && !this.wnltid.equals(other.wnltid))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "baiwa.rta.model.Rmwnlt[ wnltid=" + wnltid + " ]";
    }

}
